<?php

class DemoPhaseListener implements PhpFaces_PhaseListener {
	public function beforePhase( PhpFaces_PhaseEvent $event ) {
		echo "before phase ".$event->getPhaseId()."\n";
	}
	
	public function afterPhase( PhpFaces_PhaseEvent $event ) {
		echo "after phase ".$event->getPhaseId()."\n";
	}
	
	public function getPhaseId() {
		return PhpFaces_PhaseId::ANY_PHASE;
	}
}

?>